package projet_v1.items.help;
/**
 * This class will test the Food class 
 * 
 * @author Alexis LAURENT
 *
 */
import static org.junit.Assert.*;

import org.junit.Before;
import org.junit.Test;

import projet_v1.Human;

/**
 * 
 * @author Alexis Laurent
 *
 */
public class TestFood {

	private Food f;
	
	@Before
	public void setUp() throws Exception {
		f = new Food();
	}

	@Test
	public void testUse() {
		Human h = new Human(Human.HP_HUMANS);
		h.endOfTurn();
		h.endOfTurn();
		assertEquals(2,h.getTurnsSinceLastMeal());
		f.use(h);
		assertEquals(0,h.getTurnsSinceLastMeal());
	}

}
